﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.ServiceModel.Web;

namespace iBet.Services
{
    // NOTE: If you change the interface name "ITicketCalclator" here, you must also update the reference to "ITicketCalclator" in Web.config.
    [ServiceContract]
    public interface ITicketCalculator
    {
        [OperationContract]
        double CalculateTicket(Ticket ticket);

        [OperationContract]
        [WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.Wrapped, ResponseFormat = WebMessageFormat.Json)]
        double TestCalculation(double input);
    }
}
